package com.tlx.spring.boot.blog.elasticsearch.repository;

import com.tlx.spring.boot.blog.elasticsearch.entity.es.EsBlog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;

/**
 * EsBlog Repository 接口
 */
public interface EsBlogRepository extends ElasticsearchCrudRepository<EsBlog,String> {
    /**
     * 分页查询博客（去重）
     * @param title
     * @param summary
     * @param content
     * @return
     */
    Page<EsBlog> findDistinctEsBlogByTitleContainingOrSummaryContainingOrContentContaining(String title,String summary,String content,Pageable pageable);
}
